﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZHDJ.Data.Models.Edu;

namespace ZHDJ.Data.Mapping.Edu
{
     public class PartyEduTestRecordDetailMap:EntityTypeConfiguration<PartyEduTestRecordDetail>
    {
        public PartyEduTestRecordDetailMap()
        {
            //this.ToTable("tblPatyEduSubjectOptions");
            //this.HasKey(f => f.ID);
            //this.Property(f => f.Name).IsRequired().HasMaxLength(200);

            this.HasRequired(f => f.PatyEduTestRecord)
                .WithMany(fg => fg.PatyEduTestRecordDetails)
                .HasForeignKey(f => f.RecordId);

        }
    }
}
